package com.uzai.console.jsonvo.merbaseconfig;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;

import java.io.Serializable;
import java.util.List;

/**
 * @author liuqi
 * @date 2022年05月05日 17:44
 */
public class CmsHomePageConfigJson {

    private List<Component> components;

    public List<Component> getComponents() {
        return components;
    }

    public void setComponents(List<Component> components) {
        this.components = components;
    }

    //配置信息
    public static class Component implements Serializable {

        private static final long serialVersionUID = -2921140710097749263L;

        @ApiModelProperty("id")
        private String id ;

        @ApiModelProperty("活动展示位置(PicWord-轮播图文；MarketNavigate-营销导航；PersonalPicWord-个人中心图文；PersonalGrid-个人中心八宫格；MostOne-优惠头条)")
        private String name ;

        @ApiModelProperty("活动展示位置(PicWord-轮播图文；MarketNavigate-营销导航；PersonalPicWord-个人中心图文；PersonalGrid-个人中心八宫格；MostOne-优惠头条)")
        private String cnName ;

        @ApiModelProperty("top、default、bottom")
        private String collection ;

        @ApiModelProperty("true")
        private Boolean noCopyAndDel;

        @ApiModelProperty("config")
        private Config config;


        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getCnName() {
            return cnName;
        }

        public void setCnName(String cnName) {
            this.cnName = cnName;
        }

        public String getCollection() {
            return collection;
        }

        public void setCollection(String collection) {
            this.collection = collection;
        }

        public Boolean getNoCopyAndDel() {
            return noCopyAndDel;
        }

        public void setNoCopyAndDel(Boolean noCopyAndDel) {
            this.noCopyAndDel = noCopyAndDel;
        }

        public Config getConfig() {
            return config;
        }

        public void setConfig(Config config) {
            this.config = config;
        }
    }

    //配置信息
    public static class Config implements Serializable {

        private static final long serialVersionUID = -5936377359014023053L;

        @ApiModelProperty("请输入商品名或粘贴宝贝标题搜索")
        private String searchTip;
        @ApiModelProperty("关键词列表")
        private List<String> keywords;
        @ApiModelProperty("二维码")
        private String qrcodeImg;
        @ApiModelProperty("客服设置")
        private String kfSetting;
        @ApiModelProperty("图片高度")
        private String height;
        @ApiModelProperty("活动信息")
        private List<ActivityInfo> list;
        @ApiModelProperty("useOfficial")
        private Boolean useOfficial;

        public long getSerialVersionUID() {
            return serialVersionUID;
        }

        public String getSearchTip() {
            return searchTip;
        }

        public void setSearchTip(String searchTip) {
            this.searchTip = searchTip;
        }

        public List<String> getKeywords() {
            return keywords;
        }

        public void setKeywords(List<String> keywords) {
            this.keywords = keywords;
        }

        public String getQrcodeImg() {
            return qrcodeImg;
        }

        public void setQrcodeImg(String qrcodeImg) {
            this.qrcodeImg = qrcodeImg;
        }

        public String getKfSetting() {
            return kfSetting;
        }

        public void setKfSetting(String kfSetting) {
            this.kfSetting = kfSetting;
        }

        public String getHeight() {
            return height;
        }

        public void setHeight(String height) {
            this.height = height;
        }

        public List<ActivityInfo> getList() {
            return list;
        }

        public void setList(List<ActivityInfo> list) {
            this.list = list;
        }

        public Boolean getUseOfficial() {
            return useOfficial;
        }

        public void setUseOfficial(Boolean useOfficial) {
            this.useOfficial = useOfficial;
        }
    }


    public static class ActivityInfo implements Serializable {

        private static final long serialVersionUID = -6386439247002589446L;

        @ApiModelProperty("图片url")
        private String imgUrl;
        @ApiModelProperty("图标url")
        private String iconUrl;
        @ApiModelProperty("背景色")
        private String background;
        @ApiModelProperty("位置id")
        private String id;
        @ApiModelProperty("跳转连接")
        private String url;
        @ApiModelProperty("活动id")
        private String activityId;
        @ApiModelProperty("开始时间")
        private Integer startTime;
        @ApiModelProperty("结束时间")
        private Integer endTime;
        @ApiModelProperty("是否使用官方营销导航")
        private Boolean checked;
        @ApiModelProperty("标题")
        private String title;

        public long getSerialVersionUID() {
            return serialVersionUID;
        }

        public String getImgUrl() {
            return imgUrl;
        }

        public void setImgUrl(String imgUrl) {
            this.imgUrl = imgUrl;
        }

        public String getIconUrl() {
            return iconUrl;
        }

        public void setIconUrl(String iconUrl) {
            this.iconUrl = iconUrl;
        }

        public String getBackground() {
            return background;
        }

        public void setBackground(String background) {
            this.background = background;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getActivityId() {
            return activityId;
        }

        public void setActivityId(String activityId) {
            this.activityId = activityId;
        }

        public Integer getStartTime() {
            return startTime;
        }

        public void setStartTime(Integer startTime) {
            this.startTime = startTime;
        }

        public Integer getEndTime() {
            return endTime;
        }

        public void setEndTime(Integer endTime) {
            this.endTime = endTime;
        }

        public Boolean getChecked() {
            return checked;
        }

        public void setChecked(Boolean checked) {
            this.checked = checked;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }
    }


}


